Function |wrapping_neg

std/ops/num::|wrapping_neg


Usage

|wrapping_neg<N>(val)

Generics

โ—ป N: WrappingNeg

Parameters

โ†ณ val: N

Return

โ†ด N


Return negation of given value, wrapping on bounds.

This function is infaillible and wrap if -val reach boundary of the data type.